<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="js/mui.min.js"></script>
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/sub.css" />
		<link rel="stylesheet" type="text/css" href="css/home.css" />
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	</head>
	<body>
		<!-- 头部 offCanvasSide-->
		<header class="mui-bar mui-bar-nav">
			<a class="mui-pull-left locat-name" href="#"><span>重庆</span>&nbsp;<i class="icon-down"></i></a>
			<div class="input-wrap mui-clearfix">
				<input type="text" name="" id="search-btn" value="" placeholder="产品  商家  风格  服务类型" />
				<a href="" class="icon-search mui-pull-right"></a>
			</div>
			<a class="mui-pull-right icon-serve server"></a>
		</header>
		<div class="mui-content">
			<!--轮播图-->
			<div id="slider" class="mui-slider">
				<div class="mui-slider-group mui-slider-loop" id="sliderwrap">
					<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="#">
							<img src="http://placehold.it/400x240">
						</a>
					</div>
					<!-- 第一张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="http://placehold.it/400x240">
						</a>
					</div>
					<!-- 第二张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="http://placehold.it/400x240">
						</a>
					</div>
					<!-- 第三张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="http://placehold.it/400x240">
						</a>
					</div>
					<!-- 第四张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="http://placehold.it/400x240">
						</a>
					</div>
					<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="#">
							<img src="http://placehold.it/400x240">
						</a>
					</div>
				</div>
			</div>
			<!--轮播图-->
			
			<!--S导航-->
			<ul class="mui-table-view mui-grid-view mui-grid-9 home-recom">
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-mysteward"></span>
						<div class="mui-media-body">婚礼管家</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-hyjd"></span>
						<div class="mui-media-body">婚宴酒店</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-hlch"></span>
						<div class="mui-media-body">婚礼策划</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-hssy"></span>
						<div class="mui-media-body">婚纱摄影</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-myyx"></span>
						<div class="mui-media-body">蜜月旅行</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="list_sdjg.html">
						<span class="mui-icon icon-sdjg"></span>
						<div class="mui-media-body">四大金刚</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-hpsc"></span>
						<div class="mui-media-body">婚品商城</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="discover.html">
						<span class="mui-icon icon-other"></span>
						<div class="mui-media-body">全部分类</div>
					</a>
				</li>
			</ul>
			<!--E导航-->
			
			<!--S精选婚礼方案-->
			<div class="home-section wed-plan">
				<div class="home-section-header">
					<h1 class="home-section-tit mod-title-30">精选婚礼方案</h1>
					<a href="" class="more-href mod-nav">更 多 ></a>
				</div>
				<div class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
					<div class="mui-scroll" id="paln-content-wrap">
						<a class="mui-control-item mui-active">
							<div class="plan-content">
								<div class="plan-content-img">
									<img src="http://placehold.it/290x290" />
								</div>
								<div class="plan-info">
									<h2 class="mod-title-24 mui-ellipsis mt12">名字婚礼名字</h2>
									<p class="mod-info-18 mui-ellipsis mt12">描述描述最多14汉字描述描述最多14汉字</p>
								</div>
							</div>
						</a>
						<a class="mui-control-item">
							<div class="plan-content">
								<div class="plan-content-img">
									<img src="http://placehold.it/290x290" />
								</div>
								<div class="plan-info">
									<h2 class="mod-title-24 mui-ellipsis mt12">名字婚礼名字</h2>
									<p class="mod-info-18 mui-ellipsis mt12">描述描述最多14汉字描述描述最多14汉字</p>
								</div>
							</div>
						</a>
						<a class="mui-control-item">
							<div class="plan-content">
								<div class="plan-content-img">
									<img src="http://placehold.it/290x290" />
								</div>
								<div class="plan-info">
									<h2 class="mod-title-24 mui-ellipsis mt12">名字婚礼名字</h2>
									<p class="mod-info-18 mui-ellipsis mt12">描述描述最多14汉字描述描述最多14汉字</p>
								</div>
							</div>
						</a>
				
				

					</div>
				</div>
			</div>
			<!--E精选婚礼方案-->

			<!--S金牌婚礼管家-->
			<div class="home-section wed-steward">
				<div class="home-section-header">
					<h1 class="home-section-tit mod-title-30">金牌婚礼管家</h1>
					<a href="" class="more-href mod-nav">更 多 ></a>
				</div>
				<div class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
					<div class="mui-scroll" id="steward-content-wrap">
						<a class="mui-control-item mui-active">
							<div class="steward-wrap mui-clearfix">
								<div class="steward-header mui-pull-left">
									<img src="http://placehold.it/110x175" alt="" />
								</div>
								<div class="steward-content mui-pull-right">
									<h2 class="mod-title-24 mui-ellipsis before-icon"><i></i>金牌大师</h2>
									<p class="mod-info-18  mui-ellipsis">婚礼策划数 199</p>
									<p class="mod-info-18  mui-ellipsis">方案好评率 100%</p>
									<h2 class="mod-title-16  mui-ellipsis">管家介绍</h2>
									<p class="mod-info-14 mt12">0年从业经验，17年7月 加入相合婚礼管家团队，保 持百分百好评率。个人管家 风格：性价比至上，关注点 低质量，严禁不懈
									</p>
									<i class="steward-btn">联系管家</i>
								</div>
							</div>
						</a>
						<a class="mui-control-item">
							<div class="steward-wrap mui-clearfix">
								<div class="steward-header mui-pull-left">
									<img src="http://placehold.it/110x175" alt="" />
								</div>
								<div class="steward-content mui-pull-right">
									<h2 class="mod-title-24 mui-ellipsis before-icon"><i></i>金牌大师</h2>
									<p class="mod-info-18  mui-ellipsis">婚礼策划数 199</p>
									<p class="mod-info-18  mui-ellipsis">方案好评率 100%</p>
									<h2 class="mod-title-16  mui-ellipsis">管家介绍</h2>
									<p class="mod-info-14">0年从业经验，17年7月 加入相合婚礼管家团队，保 持百分百好评率。个人管家 风格：性价比至上，关注点 低质量，严禁不懈
									</p>
									<i class="steward-btn">联系管家</i>
								</div>
							</div>
						</a>
						<a class="mui-control-item">
							<div class="steward-wrap mui-clearfix">
								<div class="steward-header mui-pull-left">
									<img src="http://placehold.it/110x175" alt="" />
								</div>
								<div class="steward-content mui-pull-right">
									<h2 class="mod-title-24 mui-ellipsis before-icon"><i></i>金牌大师</h2>
									<p class="mod-info-18  mui-ellipsis">婚礼策划数 199</p>
									<p class="mod-info-18  mui-ellipsis">方案好评率 100%</p>
									<h2 class="mod-title-16  mui-ellipsis">管家介绍</h2>
									<p class="mod-info-14">0年从业经验，17年7月 加入相合婚礼管家团队，保 持百分百好评率。个人管家 风格：性价比至上，关注点 低质量，严禁不懈</p>
									<i class="steward-btn">联系管家</i>
								</div>
							</div>
						</a>
					</div>
				</div>
			</div>
			<!--E金牌婚礼管家-->

			<!--S管家服务标准-->
			<div class="gjfw-wrap">
				<h2 class="mod-title-24">管家服务标准</h2>
				<div class="gjfw-cir-wrap">
					<ul>
						<li>一对一<br />服务</li>
						<li>规范性<br />流程</li>
						<li>标准化<br />执行</li>
						<li>个性化<br />定制</li>
						<li>不收<br />平台费</li>
					</ul>
				</div>
			</div>
			<!--E管家服务标准-->
		</div>
		<!--脚部-->
		<nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item mui-active" href="index.html" data-id="index">
				<span class="foot-icon icon-home"></span>
				<span class="foot-icon-active icon-homeA"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="discover.html" data-id="discover">
				<span class="foot-icon icon-discover"></span>
				<span class="foot-icon-active icon-discoverA"></span>
				<span class="mui-tab-label">发现</s pan>
			</a>
			<a class="mui-tab-item" href="newsay.html" data-id="newsay">
				<span class="foot-icon icon-say"></span>
				<span class="foot-icon-active icon-sayA"></span>
				<span class="mui-tab-label">新人说</span>
			</a>
			<a class="mui-tab-item" href="shop.html" data-id="shop">
				<span class="foot-icon icon-shop"></span>
				<span class="foot-icon-active icon-shopA"></span>
				<span class="mui-tab-label">商城</span>
			</a>
			<a class="mui-tab-item" href="myshemher.html" data-id="myshemher">
				<span class="foot-icon icon-personal"></span>
				<span class="foot-icon-active icon-personal"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>
		<script type="text/html" id="sliderJs">
			<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
			<div class="mui-slider-item mui-slider-item-duplicate">
				<a href="#" dataid="{{result[length-1].id}}">
					<img src="{{result[length-1].img}}?imageView2/1/w/400/h/240">
				</a>
			</div>
			{{each result as item index }}
			<div class="mui-slider-item">
				<a href="#" dataid="{{item.id}}">
					<img src="{{item.img}}?imageView2/1/w/400/h/240">
				</a>
			</div>
			{{/each }}
			<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
			<div class="mui-slider-item mui-slider-item-duplicate">
				<a href="#" dataid="{{result[0].id}}">
					<img src="{{result[0].img}}?imageView2/1/w/400/h/240">
				</a>
			</div>
		</script>
		<!--/*渲染精选婚礼方案*/-->
		<script type="text/html" id="jxhlJs">
			{{ each result as item index}}
				<a class="mui-control-item">
					<div class="plan-content">
						<div class="plan-content-img">
							<img src="{{item.pic}}?imageView2/1/w/290/h/290" />
						</div>
						<div class="plan-info">
							<h2 class="mod-title-24 mui-ellipsis mt12">{{item.title}}</h2>
							<p class="mod-info-18 mui-ellipsis mt12">描述描述最多14汉字描述描述最多14汉字</p>
						</div>
					</div>
				</a>
			{{/each}}
		</script>
		
		<!--/*金牌婚礼管家*/-->
		<script type="text/html" id="jphlJs">
			{{each result as item index}}
				<a class="mui-control-item">
					<div class="steward-wrap mui-clearfix">
						<div class="steward-header mui-pull-left">
							<img src="{{item.pic}}?imageView2/1/w/110/h/175" alt="" />
						</div>
						<div class="steward-content mui-pull-right">
							<h2 class="mod-title-24 mui-ellipsis before-icon"><i></i>{{item.name}}</h2>
							<p class="mod-info-18  mui-ellipsis">婚礼策划数  {{item.mun}}</p>
							<p class="mod-info-18  mui-ellipsis">方案好评率  {{item.name}}</p>
							<h2 class="mod-title-16  mui-ellipsis">管家介绍</h2>
							<p class="mod-info-14 mt12">{{item.abstract}}
							</p>
							<i class="steward-btn" onclick="callphone('400-8819-520')">联系管家</i>
						</div>
					</div>
				</a>
			{{/each}}
		</script>
		<script src="js/artTemplate.js" type="text/javascript" charset="utf-8"></script>
		<!--<script src="js/home.js" type="text/javascript" charset="utf-8"></script>-->
		<script src="js/mod.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			function callphone(str)
			{
				mui.alert("欢迎拨打热线咨询："+str);
			}
			/*渲染轮播*/
			mui.ajax("http://www.xhwed.com/xhwe.php/HomePage/carousel",{
				dataType:'json',//服务器返回json格式数据
				type:'post',//HTTP请求类型
				timeout:10000,//超时时间设置为10秒；
				headers:{'Content-Type':'application/json'},	              
				success:function(data){
					data["length"]=data.result.length;
					var html = template("sliderJs",data);
					mui("#sliderwrap")[0].innerHTML = html;
				},
				error:function(xhr,type,errorThrown){
					//异常处理；
					console.log(type);
				}
			});
			
			/*渲染精选婚礼方案*/
			mui.ajax("http://www.xhwed.com/xhwe.php/HomePage/programme",{
				dataType:'json',//服务器返回json格式数据
				type:'post',//HTTP请求类型
				timeout:10000,//超时时间设置为10秒；
				headers:{'Content-Type':'application/json'},	              
				success:function(data){
					console.log(data);
					var html = template("jxhlJs",data);
					mui("#paln-content-wrap")[0].innerHTML = html;
				},
				error:function(xhr,type,errorThrown){
					//异常处理；
					console.log(type);
				}
			})
			
			/*金牌婚礼管家*/
			mui.ajax("http://www.xhwed.com/xhwe.php/HomePage/housekeeper",{
				dataType:'json',//服务器返回json格式数据
				type:'post',//HTTP请求类型
				timeout:10000,//超时时间设置为10秒；
				headers:{'Content-Type':'application/json'},	              
				success:function(data){
					console.log(data);
					var html = template("jphlJs",data);
					mui("#steward-content-wrap")[0].innerHTML = html;
				},
				error:function(xhr,type,errorThrown){
					//异常处理；
					console.log(type);
				}
			})
		</script>
	</body>

</html>